package com.adou.d5.cla.d1;

public class Student {
    String name;
    double chiness;
    double math;

    public void printTotal(){
        System.out.println(name + "总成绩是：" + (chiness+math));
    }

    public void printAvg(){
        System.out.println(name + "总成绩是：" + (chiness+math)/2.0);
    }
}
